<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#one{
position: static;
left: 50px;
top: 50px;
height: 100px;
width: 100px;
background-color: lightskyblue;
}
#two{
position: relative;
left: 50px;
top: 50px;
height: 100px;
width: 100px;
background-color: lightcoral;

}
#three{
position: absolute;
left: 25px;
top: 25px;
height: 100px;
width: 100px;
background-color: lightgreen;
}
#four{
position: fixed;
left: 70px;
top: 280px;
height: 100px;
width: 100px;
background-color: lightseagreen;
}
</style>
</head>
<body>
<div id="one">第1个div盒子</div>
<div id="two">第2个div盒子</div>
<div id="three">第3个div盒子</div>
<div id="four">第4个div盒子</div>
<div>为了增加网页内容显示滚动条而添加的内容</div>
<div>为了增加网页内容显示滚动条而添加的内容</div>
<div>为了增加网页内容显示滚动条而添加的内容</div>
<div>为了增加网页内容显示滚动条而添加的内容</div>
<div>为了增加网页内容显示滚动条而添加的内容</div>


</body>
</html>